package com.fzc.generic;

/**
 * Created with com.fzc.generic.
 * User: fzc
 * Date: 2017/9/26
 * Time: 23:42
 * Info:
 */
public class TestInterface {

    public static void main(String[] args) {
        IMessage<String> message = new MessageImp();
        message.print("HELLO WORLD~!!");
    }

}


interface IMessage<T>{
    public void print(T t);
}

class MessageImp implements IMessage<String> {

    @Override
    public void print(String s) {

    }
}